//定义主题色
@theme-color: #5d8b49;
//定义点缀色
@adorn-color: #ffa11e;
//边框色
@tborder-color: #e4e9e2;
//
@bg-color: #eaf6eb;

//左浮动
.fl(@type){
    float: @type;
}
//动作
.trandtion-ease(@time: .2s){
    transition: all ease-in-out @time;
    -webkit-transition: all ease-in-out @time;
    -ms-transition: all ease-in-out @time;
}
//普通按钮
.button-normal{
    display: inline-block;
    border: none;
    padding: 0 24px;
    height: 34px;
    border-radius: 50px;
    outline: none;
    color: #fff;
    background-color: #5d8b49;
    cursor: pointer;
    .trandtion-ease();
    &:hover{
        opacity: .9;
        color: #fff;
    }
}

//build index
.build-wrapper{
    margin: 24px;
}
.build-module{
    background-color: @bg-color;
    border-radius: 12px;
    margin-bottom: 20px;
}
.build-padding{
    padding: 24px;
}
.build-main{
    float: left;
    width: 75%;
}
@build-title-height: 34px;
.build-title-box{
    height: @build-title-height;
    line-height: @build-title-height;
    margin-bottom: 20px;
    .build-title-left{
        .fl(left);
    }
    .build-title{
        display: inline-block;
        font-size: 20px;
    }
    .build-search{
        display: inline-block;
        width: 360px;
        padding-right: 42px;
        position: relative;
        input{
            height: 34px;
            line-height: 34px;
            border-top-left-radius: 3px;
            border-bottom-left-radius: 3px;
            background-color: #fff;
            border: none;
            width: 100%;
            text-indent: 12px;
        }
        .build-search-btn{
            position: absolute;
            right: 0;
            top: 0;
            width: 42px;
            height: 34px;
            line-height: 34px;
            text-align: center;
            cursor: pointer;
            border-top-right-radius: 3px;
            border-bottom-right-radius: 3px;
            background: #fff url(../images/icon-search.png) center center no-repeat;
            .trandtion-ease();
            &:hover{
                background-color: #f2f2f2;
            }
        }
    }
    .build-todo{
        display: inline-block;
        margin-left: 32px;
        .build-btn-group{
            button{
                height: 34px;
                line-height: 34px;
                padding: 0 20px!important;
                background-color: #fff;
                color: #333;
                letter-spacing: 2px;
                .trandtion-ease();
                &:hover{
                    color: @theme-color;
                }
                &.active{
                    background-color: #dcdcdc;
                    color: @theme-color;
                }
            }
        }
        .build-btn-turn{
            .layui-btn{
                font-size: 20px;
                color: #666;
                 &.active{
                    background-color: @theme-color;
                    color: #fff;
                }
            }
            .layui-btn:first-child{
                border-top-left-radius: 50px;
                border-bottom-left-radius: 50px;
                padding: 0 20px 0 24px!important;
            }
            .layui-btn:last-child{
                border-top-right-radius: 50px;
                border-bottom-right-radius: 50px;
                padding: 0 24px 0 20px!important;
            }
        }
    }
    .build-title-right{
        .fl(right);
        .layui-form-select{
            display: inline-block;
        }
        .layui-input, .layui-select, .layui-textarea{
            height: 34px;
            line-height: 34px;
            border: none;
        }
    }
}
.build-project-item{
    overflow: hidden;
}
.build-project-list{
    width: 23.5%;
    margin-right: 2%;
    margin-bottom: 20px;
    float: left;
    &:nth-child(4n){
        margin-right: 0;
    }
}
.build-project-null{
    text-align: center;
    padding: 56px 0 64px;
    img{
        width: 10%;
    }
    span{
        font-size: 20px;
        color: #777;
        margin-left: 42px;
    }
}
.build-project-link{
    padding-bottom: 12%;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 2px 3px rgba(0, 0, 0, .05);
    a>img{
        width: 100%;
        background-color: #e8e8e8;
    }
    .build-project-sub{
        position: absolute;
        width: 100%;
        height: 28%;
        top: 68%;
        .trandtion-ease(.4s);
    }
    &:hover{
        color: #333;
        .build-project-sub{
            margin-top: -36px;
        }
        .build-project-item-bottom{
            opacity: 1;
        }
    }
}
.build-project-item-top{
    text-align: center;
    background-color: #fff;
    height: 100%;
    dt{
        display: inline-block;
        padding: 6%;
        width: 14%;
        border-radius: 50%;
        background-color: #fff;
        margin-top: -50%;
        img{
            width: 100%;
        }
    }
    dd{
        font-size: 16px;
    }
}
.build-project-item-bottom{
    height: 42px;
    line-height: 42px;
    padding: 0 20px;
    opacity: 0;
    background-color: #fff;
    .trandtion-ease(.4s);
    .left{
        .fl(left);
        font-size: 14px;
        color: #666;
    }
    .right{
        .fl(right);
        font-size: 16px;
        color: #ffa11e;
        cursor: pointer;
        .trandtion-ease();
        &:hover{
            -moz-transform:scale(1.5, 1.5); 
            -webkit-transform:scale(1.5, 1.5); 
            -o-transform:scale(1.5, 1.5); 
        }
    }
}
.submain-table{
    margin-top: 12px;
    position: relative;
    overflow: hidden;
    .table-responsive{
        width: 100%;
        min-width: 1240px;
    }
    .checkbox{
        display: inline-block;
        width: 16px;
        height: 16px;
        position: relative;
        input{
            position: absolute;
            opacity: 0;
            width: 16px;
            height: 16px;
            z-index: 2;
            left: 0;
            top: 0;
            cursor:pointer;
        }
        i.checkbox-inner{
            position: relative;
            display: block;
            width: 14px;
            height: 14px;
            border: 1px solid #d2d2d2;
            border-radius: 3px;
            background-color: #fff;
            .trandtion-ease();
            &:before, &:after{
                display: block;
                content:"";
                position: absolute;
                background-color: red;
                transform: rotate(-45deg);
                background-color: #fff;
            }
            &:before{
                top: 5px;
                left: 4px;
                width: 2px;
                height: 6px; 
            }
            &:after{
                top: 6px;
                left: 4px;
                width: 9px;
                height: 2px;
            }
        }
        &:hover{
            i{
                border-color: @theme-color;
            }
        }
        input[type="checkbox"]:checked + i{
            background-color: @theme-color;
            border-color: @theme-color;
        }
    }
    .caozuo-box{
        .caozuo-mask{
            position: fixed;
            left:0;
            top: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0,0,0,.01);
            display: none;
        }
    }
    .caozuo-vis{
        width: 240px;
        height: 100%;
        padding: 0 20px;
        text-align: left;
        background-color: #fff;
        position: absolute;
        right: -240px;
        top: 0;
        box-shadow: -2px 0 3px rgba(0,0,0,.1);
        display: none;
        z-index: 2;
        .title{
            padding-bottom: 15px;
            font-size: 16px;
            border-bottom:solid 1px #afbcaa;
            margin-top: 25px;
        }
        .content{
            position: absolute;
            top: 70px;
            left: 0;
            right: 0;
            bottom: 94px;
            padding: 0 25px;
            padding-top: 25px;
            overflow-y: auto;
            li{
                padding-bottom:20px;
                line-height: 16px;
            }
            label{
                line-height: 1;
                font-size: 14px;
                vertical-align: baseline;
                cursor: pointer;
                .checkbox{
                    vertical-align: middle;
                    margin-right: 6px;
                }
            }
        }
        .footer{
            position: absolute;
            bottom: 0;
            left: 0;
            padding: 25px 0;
        }
    }
    .table{
        border-bottom: none;
        table-layout: fixed;
        background-color: #fff;
        .text-center{
            text-align: center;
        }
        th,td{
           padding: 15px 16px 15px 8px;
           font-weight: normal;
        }
        thead tr{
            background-color: #cfe4d1;
            th{
                border-bottom: none;
                text-align: left;
            }
        }
        .caozuo{
            text-align: center;
            color: #2d4112;
            position: relative;
            cursor: pointer;
            i{
                .trandtion-ease();
                &:hover{
                    color: @theme-color;
                }   
            }
            &:hover{
                .layui-nav-child{
                    display: block;
                }
            }
            .layui-nav-child{
                position: fixed;
                min-width: 0;
                right: 0;
                top: 36px;
                left: auto;
                dd{
                    padding: 0 12px;
                    i{
                        margin-right: 5px;
                    }
                    &:hover{
                        background-color: #f2f2f2;
                        a{
                            color: @theme-color;
                            
                        }
                    }
                }
            }
        }
        td{
            border-bottom: solid 1px @tborder-color;
            font-size: 13px;
            .trandtion-ease();
        }
    }
    .dataTables_wrapper{
        .table-bottom{
            clear: both;
            float: right;
            margin-right: 12px;
            >div{
                padding-top:0;
                float: left;
                line-height: 28px;
                margin-left: 10px;
                margin-top: 15px;
                .paginate_button{
                    display: inline-block;
                    padding: 0;
                    height: 28px;
                    line-height: 28px;
                    width: 28px;
                    text-align: center;
                    background-color: #fff;
                    margin: 0 3px;
                    cursor: pointer;
                    .trandtion-ease();
                    &.current, &:hover, &:active{
                        background: none;
                        background-color: #fff;
                        border-color: #fff;
                        color: #333!important;
                        outline:none;
                    }
                    &.disabled{
                        cursor: no-drop;
                    }
                    i{
                        font-size: 12px;
                    }
                }
                &.dataTables_length{
                    select{
                        height: 28px;
                        padding: 0 3px;
                        background-color: #fff;
                        border: none;
                    }
                }
            }
        }
    }
    table.dataTable.compact thead th, 
    table.dataTable.compact thead td{
        padding-top: 16px;
        padding-bottom: 16px;
    }
    table.dataTable.compact thead th.spe-center{
        padding-right: 4px;
    }
    .dataTables_wrapper.no-footer .dataTables_scrollBody,
    table.dataTable.no-footer{
        border-bottom: 0!important;
    }
    table.dataTable.no-footer{
        border-bottom: 0px solid #eef9ef!important;
    }
    .table-static{
        margin-top:0;
        tr{
            th:first-child, td:first-child{
                border-left: none;
            }
            th:last-child, td:last-child{
                border-right: none;
            }
        }
        th{
            background-color: #f8f8f8;
            padding:16px 12px;
            font-weight: normal;
            text-align: center;
            color: #000;
        }
        td{
            padding:8px 12px;
            font-size: 13px;
            text-align: center;
            .goods-img{
                width: 46px;
            }
        }
    }
    .table-gathering{
        border-left: 1px solid @tborder-color;
        border-right: 1px solid @tborder-color;
        td{
            padding: 16px 12px;
            &.gather-state{
                color: @adorn-color;
            }
            &.gather-caozuo{
                a{
                    margin: 0 12px;
                    color:@theme-color;
                    display: inline-block; 
                    &:hover{
                        text-decoration: underline;
                    }
                }
            }
        }
    }
    .table-footer-wrapper{
        text-align: right;
        ul{
            display: inline-block;
            li{
                margin-bottom: 10px;
                &:last-child{
                margin-bottom: 0; 
                }
            }
            label{
                display: inline-block;
                width: 120px;
            }
            span.num{
                display: inline-block;
                min-width: 120px;
                margin-left: 8px;
                text-align: left;
                font-size: 16px;
            }
            
        }
        .i-detail{
            display: inline-block;
            font-style: normal;
            position: relative;
            cursor: pointer;
            &:hover{
                .i-detail-show{
                    display: block;
                    -webkit-transform: scale(1, 1);
                    transform: scale(1, 1);
                }
            }
        }
        .i-detail-span{
            padding: 2px 5px;
            border-radius: 2px;
            background-color: @adorn-color;
            color: #fff;
            font-size: 12px;
        }
        .i-detail-show{
            display: none\0;
            width: 220px;
            border: #e2e2e2 solid 1px;
            border-radius: 2px;
            padding: 16px;
            position: absolute;
            right: 32px;
            bottom: 0;
            background-color: #fff;
            color: #666;
            font-size: 13px;
            .trandtion-ease();
            -webkit-transform: scale(0, 0);
            transform: scale(0, 0);
            -webkit-transform-origin: right bottom;
            transform-origin: right bottom;
            li{
                margin-bottom: 5px;
                &:last-child{
                    margin-bottom: 0;
                }
                span{
                    color: #333;
                }
            }
        }
        .table-info{
            text-align: left;
            margin-left: 12px;
            span{
                display: inline-block;
                border-radius: 2px;
                padding: 3px 5px;
                background-color: @theme-color;
                color: #fff;
                font-size: 12px;
                margin-right: 16px;
                line-height: 1;
            }
        }
        .table-info-after{
            >section{
                padding: 3px 20px;
                text-align: left;
                label{
                    color: #666;
                    width: 120px;
                    float: left;
                }
                ul{
                    margin-left: 120px;
                    display: block;
                    overflow: hidden;
                    color: #333;
                    li{
                        float: left;
                        width: 256px;
                        margin-right: 36px;
                        margin-bottom: 0;
                    }
                }
            }
        }
    }
}

//build aside
.build-aside{
    float: right;
    width: 24%
}
.build-shortcut,
.build-lastnews{
    .build-title-box{
        border-bottom: solid 1px @theme-color;
        padding-bottom: 20px;
    }
}
.build-shortcut-item{
    .build-sub{
        margin-bottom: 20px;
        .sub-title{
            font-size: 17px;
        }
        .sub-item{
            overflow: hidden;
            .sub-list{
                width: 32%;
                margin-right: 2%;
                float: left;
                margin-top: 12px;
                text-align: center;
                &:nth-child(3n){
                    margin-right: 0;
                }
                a{
                    display: block;
                    padding: 8px 0;
                    background-color: #8bab7f;
                    color: #fff;
                    border-radius: 4px;
                    .trandtion-ease();
                    &:hover{
                        background-color: @theme-color;
                    }
                }
            }
        }
    }
}
.build-lastnews-item{
    margin-top: -12px;
}
.build-lastnews-list{
    border-bottom: dashed 1px #cacaca;
}
.build-lastnews-null{
    padding: 36px 56px;
    font-size: 16px;
    color: #666;
    text-align: center;
    span{
        margin-left: 8px;
    }
}
.build-lastnews-link{
    display: block;
    padding: 10px 0;
    position: relative;
}
.build-lastnews-text{
    color: #666;
    margin-right: 80px;
    .trandtion-ease();
    .fa{
        color: @adorn-color;
        margin-right: 3px;
    }
    &:hover{
        color: @adorn-color;
    }
}
.build-lastnews-time{
    position: absolute;
    top: 12px;
    right: 0;
    color: #999;
}

//项目管理
.build-subproject{
    width: 100%;
    display: table;
}
.build-subproject-left{
    width: 30%;
    height: 100%;
    display: table-cell;
    text-align: center;
    background-color: @theme-color;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    position: relative;
    &:before{
        content: "";
        height: 100%;
        display: inline-block;
        vertical-align: middle;
    }
    .subproject-top-tips{
        position: absolute;
        top: -2px;
        left: 30px;
        width: 22%;
        font-size: 12px;
        color: #fff;
        img{
            width: 100%;
        }
        .top-text{
            position: absolute;
            left: 0;
            top: 0;
            margin-top: -5px;
            width: 100%;
            height: 100%;
            &:before{
                content: "";
                height: 100%;
                display: inline-block;
                vertical-align: middle;
            }
            span{
                font-size: 16px;
            }
            div{
                display: inline-block;
                vertical-align: middle;
            }
        }
    }
    .subproject-con{
        display: inline-block;
        width: 90%;
        padding: 72px 0 36px;
        dt{
            width: 54%;
            margin: 0 auto;
            img{
                width: 100%;
            }
        }
        dd{
            color: #fff;
            width: 100px;
            padding-left: 30px;
            margin: 6px auto 0;
            text-align: left;
            position: relative;
            i{
                position: absolute;
                left: 0;
                top: 1px;
                font-size: 18px;
            }
            span{
                font-size: 18px;
                margin-right: 6px;
            }
        }
        .item-title{
            font-size: 24px;
            margin-top: 20px;
            padding-left: 0;
            text-align: center;
        }
        .item-allnum{
            font-size: 14px;
            margin-top: 16px;
        }
        .item-subnum{
            font-size: 14px;
        }
    }
}
.build-subproject-right{
    width: 70%;
    display: table-cell;
    vertical-align: middle;
    height: 100%;
    .subproject-item{
        height: 100%;
        padding: 1% 0;
        box-sizing: border-box;
    }
    .subproject-list{
        float: left;
        width: 32%;
        height: 100%;
        margin-left: 1%;
        background-color: #fff;
        text-align: center;
        &:before{
            content: "";
            height: 100%;
            display: inline-block;
            vertical-align: middle;
        }
        dl{
            display: inline-block;
            width: 98%;
            margin: 0 auto;
            vertical-align: middle;
            dt{
                display: inline-block;
                width: 28%;
                img{

                    width: 100%;
                }
            }
            .subproject-text{
                font-size: 18px;
                margin-top: 32px;
                line-height: 26px;
                height: 52px;
            }
            .subproject-graph{
                height: 200px;
                width: 90%;
                margin: 0 auto;
                margin-top: -32px;
            }
        }
    }
}







